package org.ru.mse10.cvis.web.model.initializer;

import org.ru.mse10.cvis.entity.cv.EducationEntry;
import org.ru.mse10.cvis.entity.misc.DateRange;

/**
 * The Class EducationEntryInitializer.
 */
public class EducationEntryInitializer extends
		DefaultInstanceInitializer<EducationEntry> {

	/**
	 * Instantiates a new education entry initializer.
	 */
	public EducationEntryInitializer() {
		super(EducationEntry.class);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.ru.mse10.cvis.web.model.initializer.DefaultInstanceInitializer#
	 * newInstance()
	 */
	@Override
	public EducationEntry newInstance() {
		EducationEntry entry = super.newInstance();
		entry.setRange(new DateRange());
		return entry;
	}
}
